<?php
$this->breadcrumbs = array(
    'Packages' => array('index'),
    ' - '.$model->name,
);
?>
<div class="box">
    <header>
        <div class="icons"><i class="icon-tasks"></i></div>
        <h5>View Package</h5>
    </header>
    <div class="body">
        <div class="row-fluid">
            <div class="span6">
                <?php
                $this->widget('bootstrap.widgets.TbDetailView', array(
                    'data' => $model,
                    'attributes' => array(
                        'id',
                        'name',
                        'price',
                        'delivery',
                        'report_length',
                        'common_users',
                    ),
                ));
                ?>
                <img src="<?php echo IMAGE_URL . $model->image; ?>"/>
            </div>
            <div class="span6">
                <?php
                $this->widget('bootstrap.widgets.TbDetailView', array(
                    'data' => $model,
                    'attributes' => array(
                        array(
                            'name' => 'measurement_summary',
                            'value' => Package::getRadioText($model->measurement_summary)
                        ),
                        array(
                            'name' => 'roof_photo',
                            'value' => Package::getRadioText($model->roof_photo)
                        ),
                        array(
                            'name' => 'logo_customization',
                            'value' => Package::getRadioText($model->logo_customization)
                        ),
                        array(
                            'name' => 'length_measutements',
                            'value' => Package::getRadioText($model->length_measutements)
                        ),
                        array(
                            'name' => 'pitch_measurements',
                            'value' => Package::getRadioText($model->pitch_measurements)
                        ),
                        array(
                            'name' => 'area_measurements',
                            'value' => Package::getRadioText($model->area_measurements)
                        ),
                        array(
                            'name' => 'waste_calculation_tables',
                            'value' => Package::getRadioText($model->waste_calculation_tables)
                        ),
                        array(
                            'name' => 'notes_oage',
                            'value' => Package::getRadioText($model->notes_oage)
                        ),
                        array(
                            'name' => 'editable_format',
                            'value' => Package::getRadioText($model->editable_format)
                        ),
                    )
                ));
                ?>
            </div>
        </div>

    </div>
</div>